package com.library.librarybackend.service;

import com.library.librarybackend.domain.dto.BatchRegisterFormDTO;
import com.library.librarybackend.domain.dto.LoginFormDTO;
import com.library.librarybackend.domain.dto.RegisterFormDTO;
import com.library.librarybackend.domain.vo.UserVO;


/**
 * @author 平
 * @description 认证服务接口
 * @since 2025-09-20 20:53
 */
public interface AuthService {

    /**
     * 登录
     *
     * @param loginFormDTO 登录表单
     * @return 登录用户信息
     */
    UserVO login(LoginFormDTO loginFormDTO);

    /**
     * 登出
     */
    void logout();

    /**
     * 注册
     *
     * @param registerFormDTO 注册表单
     */
    void register(RegisterFormDTO registerFormDTO);

    /**
     * 批量注册
     *
     * @param batchRegisterFormDTO 批量注册表单
     */
    void batchRegister(BatchRegisterFormDTO batchRegisterFormDTO);
}
